<template>
  <div>
    <comForm :list="comFormList" :modes="comFormMode"></comForm>
  </div>
</template>

<script>
import comForm from "@/wss/components/comForm.vue";
export default {
  name: "Index",
  components: { comForm },

  data() {
    return {
      comFormList: {
        screen: "",
        law: "",
        classify: [
          {
            value: "111",
            label: "黄金糕",
          },
          {
            value: "112",
            label: "双皮奶",
          },
          {
            value: "113",
            label: "蚵仔煎",
          },
        ],
        screening: [
          {
            valueaa: "111",
            labelaa: "待编辑",
          },
          {
            valueaa: "112",
            labelaa: "审核中",
          },
          {
            valueaa: "113",
            labelaa: "法规库",
          },
        ],
      },
      comFormMode: [
        {
          label: "快速筛选",
          mode: "screening",
          placeholder: "请筛选",
          formType: "select",
          options: {
            value: "valueaa",
            label: "labelaa",
          },
        },
        {
          label: "筛选",
          mode: "screen",
          placeholder: "筛选条件",
          formType: "input",
        },
        {
          label: "法条",
          mode: "law",
          placeholder: "请输入法条",
        },
        {
          label: "分类",
          mode: "classify",
          placeholder: "全部分类",
          formType: "select",
          options: {
            value: "value",
            label: "label",
          },
        },
        // {
        //   label: '生效时间',
        //   formType: 'date',
        //   pickerType: 'date',
        //   rangeSeparator: '-',
        //   startPlaceholder: '开始日期1112',
        //   endPlaceholder: '结束日期',
        // },
        {
          label: "上架时间",
          formType: "datePicker",
          pickerType: "date",
          rangeSeparator: "-",
          startPlaceholder: "开始日期1112",
          endPlaceholder: "结束日期",
        },
      ],
      comFormConfig: {},
    };
  },

  mounted() {
      console.log(this.comFormList["classify"]);
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
</style>